import { createApp } from 'vue';
import { runStartup } from '~/utils/defines';
import AppRoot from './App.vue';

import { useMeta } from './composables/useMeta';
// 样式导入是有序的，后导入的样式会覆盖先导入的样式
import '~/styles/reset.scss';
import 'ant-design-vue/es/style/reset.css';
import 'uno:components.css';
import 'uno.css';
import '~/styles/index.scss';
import 'uno:utilities.css';

(async () => {
  const app = createApp(AppRoot);
  useMeta();
  console.time('startup');
  await runStartup(app);

  app.mount('#app');
  console.timeEnd('startup');
})();
